package IMIC.NGUYENVANTINH.ARRAYLIST.EXCERCISE.EX02;

import java.util.ArrayList;
import java.util.List;

public class Views {
	public static void main(String[] args) {
		// Khoi tao mang hai chieu
		List<List<Double>> arr = new ArrayList<List<Double>>();
		List<Double> arr1 = new ArrayList<Double>();
		List<Double> arr2 = new ArrayList<Double>();
		
		arr1.add(6.5);
		arr1.add(23.5);
		arr1.add(35.5);
		arr1.add(64.5);
		arr1.add(44.5);
		arr1.add(3.5);
		
		arr2.add(6.5);
		arr2.add(23.5);
		arr2.add(35.5);
		arr2.add(64.5);
		arr2.add(44.5);
		arr2.add(3.5);
		arr.add(arr1);
		arr.add(arr2);
		System.out.println("In mang dong hai chieu");
		for (int i = 0; i < arr.size(); i++) {
			for (int j = 0; j < arr.get(i).size(); j++) {
				System.out.println("arr["+i+"]"+ "["+j+"] : "+arr.get(i).get(j));
			}

		}
		Controllers controllers = new Controllers();
		System.out.println("Total of arraylist "+ controllers.TotalObj(arr));
	}

}
